<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<link rel="stylesheet" href="css/jPages.css">
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/jPages.js"></script>
<script language="javascript" type="text/javascript">
	$(function() {
		$("div.holder").jPages({
			containerID : "itemContainer",
			previous : "上一页",
			next : "下一页",
			perPage : 5,
			delay : 100
		});
	});
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>电子商城的后台</title>
</head>
<link href="css/css.css" rel="stylesheet" type="text/css">


<body>
	<jsp:include page="bg-up.jsp" flush="true" />
	<table width="788" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td width="170" valign="top"><jsp:include page="bg-left.jsp"
					flush="true" /></td>
			<td width="618" align="center" valign="top" bgcolor="#FFFFFF"><br>
				<table width="610" height="25" border="0" cellpadding="0"
					cellspacing="0" background="image/bg_02.jpg">
					<tr>
						<td><div align="center">
								<strong>订单的查询</strong>
							</div></td>
					</tr>
				</table> <br>
				<table width="96%" border="1" cellpadding="1" cellspacing="1"
					bordercolor="#FFFFFF" bgcolor="CCCCCC">
					<tr bgcolor="#DCDCDC">
						<td width="109px" height="25"><div align="center">编号</div></td>
						<td width="79px"><div align="center">真实姓名</div></td>
						<td width="85px"><div align="center">是否出货</div></td>
						<td width="123px"><div align="center">订货时间</div></td>
						<td width="187px"><div align="center">操作</div></td>
					</tr>
				</table>
				<div id="itemContainer">
					<c:forEach items="${listorder }" var="lstorder">
						<table width="96%" border="1" cellpadding="1" cellspacing="1"
							bordercolor="#FFFFFF" bgcolor="CCCCCC">
							<tr align="center" bgcolor="#FFFFFF">
								<td width="15%" height="25">${lstorder.number }</td>
								<td width="14%">${lstorder.reallyName }</td>
								<td width="16%"><c:if test="${lstorder.sign eq 0 }">
										<a href="signorder?sign=${lstorder.sign }">否</a>
									</c:if> <c:if test="${lstorder.sign eq 1 }">
										<a href="signorder?sign=${lstorder.sign }">是</a>
									</c:if></td>
								<td width="22%">${lstorder.createTime }</td>
								<td width="33%"><a
									href="orderdetail?number=${lstorder.number }">详细信息</a>
									&nbsp;&nbsp; <c:if test="${lstorder.sign eq 1 }">
							 	<span style="font-size:12px">已出</span>
							 </c:if> <c:if test="${lstorder.sign eq 0 }">
										<a href="updateorder?number=${lstorder.number }" style="font-size:12px">出货</a>
									</c:if> <%-- <%if(form.getSign().equals("1")){%>  已出 
							 <%}else if(request.getParameter("sign")==null){%> 
							<a href="orderAction.do?action=1&number= <%=form.getNumber()%> ">出货</a>
							 <%}else{%>
							<a	href="orderAction.do?action=1&sign=<%=request.getParameter("sign")%>&number= <%=form.getNumber()%>">出货</a>
							 <%}%> --%> &nbsp;&nbsp; 
							 <a	href="deleteorder?number=${lstorder.number }">删除</a></td>
							</tr>
							<%-- <%}%> --%>
						</table>
					</c:forEach>
				</div> <br>
				<div class="holder" align="center"></div> <%-- <%if(request.getParameter("sign")==null){%> --%>
				<%-- <table width="96%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr align="center">
						<td width="17%">共为<%=maxPage%>页
						</td>
						<td width="22%">共有<%=pageNumber%>条记录
						</td>
						<td width="26%">当前为第<%=number+1%>页
						</td>
						<td width="19%">
							<%if((number+1)==1){%> 上一页<%}else{%> <a
							href="orderAction.do?action=0&i=<%=number-1%>">上一页</a>
						</td>
						<%}%>
						<td width="16%">
							<%if(maxPage<=(number+1)){%>下一页<%}else{%> <a
							href="orderAction.do?action=0&i=<%=number+1%>">下一页</a>
						</td>
						<%}%>
					</tr>
				</table> <%}else{%>
				<table width="96%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr align="center">
						<td width="14%">共为<%=maxPage%>页
						</td>
						<td width="18%">共有<%=pageNumber%>条记录
						</td>
						<td width="22%">当前为第<%=number+1%>页
						</td>
						<td width="16%">
							<%if((number+1)==1){%> 上一页<%}else{%> <a
							href="orderAction.do?action=0&i=<%=number-1%>&sign=<%=request.getParameter("sign")%>">上一页</a>
						</td>
						<%}%>
						<td width="12%">
							<%if(maxPage<=(number+1)){%>下一页<%}else{%> <a
							href="orderAction.do?action=0&i=<%=number+1%>&sign=<%=request.getParameter("sign")%>">下一页</a>
						</td>
						<%}%>
						<td width="18%"><a href="orderAction.do?action=0">返回</a></td>
					</tr>
				</table> <%}%></td> --%>
		</tr>
	</table><jsp:include page="bg-down.jsp" flush="true" />

</body>
</html>
